Telegram Group & Telegram Channel
Задача для новичков.

Напишите функцию, которая находит сумму первых n натуральных чисел. Сделайте свою функцию рекурсивной

Пример:
sum_numbers(5) ➞ 15
# 1 + 2 + 3 + 4 + 5 = 15

sum_numbers(1) ➞ 1

sum_numbers(12) ➞ 78

Пишите ваши варианты решения в комментах. Варианты решений будут завтра.

#новичок #coбес



tg-me.com/pythonturboru/373
Create:
Last Update:

Задача для новичков.

Напишите функцию, которая находит сумму первых n натуральных чисел. Сделайте свою функцию рекурсивной

Пример:

sum_numbers(5) ➞ 15
# 1 + 2 + 3 + 4 + 5 = 15

sum_numbers(1) ➞ 1

sum_numbers(12) ➞ 78

Пишите ваши варианты решения в комментах. Варианты решений будут завтра.

#новичок #coбес

BY Python Turbo. Уютное сообщество Python разработчиков.


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonturboru/373

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

The SSE was the first modern stock exchange to open in China, with trading commencing in 1990. It has now grown to become the largest stock exchange in Asia and the third-largest in the world by market capitalization, which stood at RMB 50.6 trillion (US$7.8 trillion) as of September 2021. Stocks (both A-shares and B-shares), bonds, funds, and derivatives are traded on the exchange. The SEE has two trading boards, the Main Board and the Science and Technology Innovation Board, the latter more commonly known as the STAR Market. The Main Board mainly hosts large, well-established Chinese companies and lists both A-shares and B-shares.

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

Python Turbo Уютное сообщество Python разработчиков from ye


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA